package com.modificial.swagger;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author modificial
 * @date 2018/7/31
 * @company codingApi
 * @description 全局参数配置
 */
@ConfigurationProperties(prefix = "spring.swagger.parameter")
public class ParameterProperties {
    /**
     * 参数名字
     */
    private  String  name;
    /**
     * 参数描述信息
     */
    private String  description;
    /**
     * 模型引用
     */
    private  String  modelRef;
    /**
     * 参数类型
     */
    private  String  parameterType;
    /**
     * 是否必要参数
     */
    private  boolean   required;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getModelRef() {
        return modelRef;
    }

    public void setModelRef(String modelRef) {
        this.modelRef = modelRef;
    }

    public String getParameterType() {
        return parameterType;
    }

    public void setParameterType(String parameterType) {
        this.parameterType = parameterType;
    }

    public boolean isRequired() {
        return required;
    }

    public void setRequired(boolean required) {
        this.required = required;
    }
}
